package org.amse.tanks.objects;

import java.io.Serializable;

public class Bonus implements Serializable {
    private int myX, myY;
    private int myValue;
    private int myTtl;

    public Bonus(int x, int y, int value, int ttl) {
        myX = x;
        myY = y;
        myValue = value;
        myTtl = ttl;
    }

    public void setX(int x) {
        myX = x;
    }

    public void setY(int y) {
        myY = y;
    }

    public void setValue(int value) {
        myValue = value;
    }

    public int getValue() {
        return myValue;
    }

    public int getX() {
        return myX;
    }

    public int getY() {
        return myY;
    }

    public int getTtl() {
        return myTtl;
    }

    public void ttlDown() {
        myTtl--;
    }
}
